/*
** malloc_2d.c for galaf in /home/compilation/galaf-lib
** 
** Made by christophe labonnemartinez
** Login   <labonn_c@epitech.net>
** 
** Started on  Sat Mar 24 05:42:18 2012 christophe labonnemartinez
** Last update Sat Aug 11 12:35:11 2012 christophe labonnemartinez
*/

#include "includes/my.h"

char	**malloc_2d(char **p, int y, int x)
{
  int	i;

  i = 0;
  p = xmalloc(sizeof(char *) * x);
  while (i <= y)
    {
      p[i] = xmalloc(sizeof(char) * x);
      i++;
    }
  return (p);
}
